//
//  BrowseElement.h
//  SolarSeek
//
//  Created by Erick Fejta on 05/06/13.
//  Copyright 2005 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "SourceListElement.h"
#import "Peers.h"
#import "Shares.h"

@interface BrowseElement : SourceListElement {
	Peer *peer;
	NSBrowser *browser;
	NSArray *cellsSelected;
	unsigned count;
	unsigned count2;
	BOOL waiting;
	BOOL autosaves;
	
}

- (id)initWithView:(NSView *)view peer:(Peer *)peer browser:(NSBrowser *)browser saveImmediately:(BOOL)save;

- (ShareTree *)shareTreeCurrent;
- (ShareTree *)shareTreeAtColumn:(int)col;

- (BOOL)autosaves;
- (void)setAutosaves:(BOOL)saves;
- (BOOL)waiting;
- (void)setWaiting:(BOOL)waiting;

- (Peer *)peer;

- (void)save;
- (void)saveAutomatically;

- (IBAction)refresh:(id)sender;
@end
